home *** CD-ROM | disk | FTP | other *** search
/ Alles Voor Internet / Tout Pour Internet / alles voor internet.iso / MacInternet™ / Telnet / DialScript / What's New in 1.7.1 < prev   
Text File  |  1994-03-08  |  3KB  |  77 lines

  1.  
  2.                 -- What's New in DialScript 1.7.1 --
  3.  
  4. •  Syntax change.  COULD BREAK OLD SCRIPTS (but probably will not).  The syntax of the next statement is now
  5.  
  6.            next value;
  7.  
  8. where value is either a string constant or a variable name.  Examples follow.
  9.  
  10.       next "foo";   -- branch to state with name foo
  11.       next foo;  -- branch to state with name stored in variable foo.
  12.  
  13. For compatibility with previous versions of DialScript, 
  14.  
  15.            next foo;
  16.  
  17. will branch to the state named foo-- if variable foo contains no value. 
  18.  
  19. This change was suggested by Norival Figueira as a hack to allow a script
  20. to (fairly) easily dial a sequence of numbers using the following scheme.
  21.  
  22. script test
  23.         state init
  24.            ...
  25.            next st1;
  26.         end;
  27.  
  28.         state st1
  29.            setvar PHONE "5551212";
  30.            setvar SomeVar "st2";
  31.            next Dial;
  32.         end;
  33.  
  34.         state st2
  35.            setvar PHONE "5551313";
  36.            setvar SomeVar "st1";
  37.            next Dial;
  38.         end;
  39.  
  40.         State Dial
  41.            ...
  42.            select
  43.              BUSY:  next SomeVar;
  44.            ...
  45.         end;
  46. end;
  47.  
  48.                 -- What's New in DialScript 1.7 --
  49.  
  50. •  Syntax change.  COULD BREAK OLD SCRIPTS.  Use
  51.          set dtr on | off; instead of set dtr high | low.
  52. •  Semantics change.  COULD BREAK OLD SCRIPTS.  Display no 
  53.     longer automatically includes newlines-- use display "foo\r";
  54. •  Added the repeat statement-- repeat NUMBER stmtlist end;
  55. •  There is now an online/offline option in the communications
  56.          dialog.  The set statement has been extended for this.  The
  57.          syntax is set online on | off.  See the manual.
  58. •  There is now an icon for DialScript created TEXT files.  You
  59.      may have to rebuild your desktop to see it.
  60. •  There is a "noecho" mode for input statements.  Syntax is
  61.  
  62.                  input variable_name noecho;
  63.  
  64.     No default value is allowed.  This is for password entering.
  65.     Thanks to Steven Marcus for help with the new icon and a dialog
  66.     filter for noecho mode.
  67. •  Allows variables to be used wherever a string constant could be
  68.     used.  Examples-- display varname; wait varname;
  69. •  You may now type and send characters while a script is
  70.          running.
  71. •  You may now save text coming into your Mac in a file in order
  72.     to keep a script log.  Added startlog and stoplog statements.
  73.     See manual.
  74. •  Variable date contains the current date and time.  You may
  75.     not set it.
  76. •  Kiss file changes the creator of a TEXT file to DialScript.
  77.